package unit2;

public class Ex2_3_PromotionDemo {
    public static void main(String args[]) {
        byte b = 10;
        char c = 'a';
        int i = 90;
        long l = 555L;
        float f = 3.5f;
        double d = 1.234;
        float f1 = f * b; // float * byte ¨C> float
        int i1 = c + i; // char + int -> int
        long l1 = l + i1; // long + int ->ling
        double d1 = f1 / i1 - d; // float / int ->float, float - double -> double
    }
}
